package com.hzpjxld.ssh.guoshui.service;

import com.hzpjxld.ssh.guoshui.dao.TestDao;
import com.hzpjxld.ssh.guoshui.model.Person;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;

/**
 * Created by Administrator on 2018-04-20.
 */
@Service("testService")
public class TestServiceImpl implements TestService {

    @Resource
    private TestDao testDao;

    @Override
    public void say() {
        System.out.println("Hello world!");
    }

    @Override
    public void save(Person person) {
        testDao.save(person);
    }

    @Override
    public Person findPerson(Serializable id) {
        return testDao.findPerson(id);
    }
}
